package com.ruoyi.messages.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息设置对象 sys_balance_warning
 * 
 * @author ruoyi
 * @date 2024-06-27
 */
public class SysBalanceWarning extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息预警主键ID */
    private Long id;

    /** 代理商/管理端下的商铺余额预警或者管理端下代理商预警值 */
    @Excel(name = "代理商/管理端下的商铺余额预警或者管理端下代理商预警值")
    private BigDecimal warningValue;

    /** 预警类型 0代理商预警值  /1下级商铺的预警值 */
    @Excel(name = "预警类型 0代理商预警值  /1下级商铺的预警值")
    private String type;

    /** 状态 0/正常  1/异常 */
    @Excel(name = "状态 0/正常  1/异常")
    private String status;

    /** 用户id 当前操作人id */
    @Excel(name = "用户id 当前操作人id")
    private Long userId;

    /** 层级id 对应当前操作人的层级 */
    @Excel(name = "层级id 对应当前操作人的层级")
    private Long deptId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWarningValue(BigDecimal warningValue) 
    {
        this.warningValue = warningValue;
    }

    public BigDecimal getWarningValue() 
    {
        return warningValue;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("warningValue", getWarningValue())
            .append("type", getType())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .toString();
    }
}
